import request from '@/utils/request'

// 查询商家服务列表
export function listShop_service_type(query) {
  return request({
    url: '/chy/shop_service_type/list',
    method: 'get',
    params: query
  })
}

// 查询商家服务详细
export function getShop_service_type(id) {
  return request({
    url: '/chy/shop_service_type/' + id,
    method: 'get'
  })
}

// 新增商家服务
export function addShop_service_type(data) {
  return request({
    url: '/chy/shop_service_type',
    method: 'post',
    data: data
  })
}

// 修改商家服务
export function updateShop_service_type(data) {
  return request({
    url: '/chy/shop_service_type',
    method: 'put',
    data: data
  })
}

// 删除商家服务
export function delShop_service_type(id) {
  return request({
    url: '/chy/shop_service_type/' + id,
    method: 'delete'
  })
}
